home *** CD-ROM | disk | FTP | other *** search
- <HTMLtool>This script animates a button when you move the mouse over it</HTMLtool>
- <style>
- <!--
- /*change the color name below to the color you want initially applied to the button. ie:blue*/
-
- .mybutton{font-weight:bold;background-color:lime}
- //-->
- </style>
-
- <form onMouseover="change('yellow')" onMouseout="change('lime')">
- <p>
- <input type="button" value="www.lograf.com" class="mybutton" onClick="jumpto('http://www.lograf.com')">
- <input type="button" value="IBM" class="mybutton" onClick="jumpto('http://www.ibm.com')">
- </p>
- </form>
-
- <script>
- <!--
-
- function change(color){
- var el=event.srcElement
- if (el.tagName=="INPUT"&&el.type=="button")
- event.srcElement.style.backgroundColor=color
- }
-
- function jumpto(url){
- window.location=url
- }
-
- //-->
- </script>
-